﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001DF RID: 479
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChallengeStoryStatistics : IMessage<ChallengeStoryStatistics>, IMessage, IEquatable<ChallengeStoryStatistics>, IDeepCloneable<ChallengeStoryStatistics>, IBufferMessage
	{
		// Token: 0x17000654 RID: 1620
		// (get) Token: 0x060015B3 RID: 5555 RVA: 0x0003DE63 File Offset: 0x0003C063
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChallengeStoryStatistics> Parser
		{
			get
			{
				return ChallengeStoryStatistics._parser;
			}
		}

		// Token: 0x17000655 RID: 1621
		// (get) Token: 0x060015B4 RID: 5556 RVA: 0x0003DE6A File Offset: 0x0003C06A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChallengeStoryStatisticsReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000656 RID: 1622
		// (get) Token: 0x060015B5 RID: 5557 RVA: 0x0003DE7C File Offset: 0x0003C07C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChallengeStoryStatistics.Descriptor;
			}
		}

		// Token: 0x060015B6 RID: 5558 RVA: 0x0003DE83 File Offset: 0x0003C083
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStoryStatistics()
		{
		}

		// Token: 0x060015B7 RID: 5559 RVA: 0x0003DE8C File Offset: 0x0003C08C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStoryStatistics(ChallengeStoryStatistics other) : this()
		{
			this.recordId_ = other.recordId_;
			this.stageTertinggi_ = ((other.stageTertinggi_ != null) ? other.stageTertinggi_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060015B8 RID: 5560 RVA: 0x0003DED8 File Offset: 0x0003C0D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStoryStatistics Clone()
		{
			return new ChallengeStoryStatistics(this);
		}

		// Token: 0x17000657 RID: 1623
		// (get) Token: 0x060015B9 RID: 5561 RVA: 0x0003DEE0 File Offset: 0x0003C0E0
		// (set) Token: 0x060015BA RID: 5562 RVA: 0x0003DEE8 File Offset: 0x0003C0E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RecordId
		{
			get
			{
				return this.recordId_;
			}
			set
			{
				this.recordId_ = value;
			}
		}

		// Token: 0x17000658 RID: 1624
		// (get) Token: 0x060015BB RID: 5563 RVA: 0x0003DEF1 File Offset: 0x0003C0F1
		// (set) Token: 0x060015BC RID: 5564 RVA: 0x0003DEF9 File Offset: 0x0003C0F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStoryStageTertinggi StageTertinggi
		{
			get
			{
				return this.stageTertinggi_;
			}
			set
			{
				this.stageTertinggi_ = value;
			}
		}

		// Token: 0x060015BD RID: 5565 RVA: 0x0003DF02 File Offset: 0x0003C102
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChallengeStoryStatistics);
		}

		// Token: 0x060015BE RID: 5566 RVA: 0x0003DF10 File Offset: 0x0003C110
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChallengeStoryStatistics other)
		{
			return other != null && (other == this || (this.RecordId == other.RecordId && object.Equals(this.StageTertinggi, other.StageTertinggi) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060015BF RID: 5567 RVA: 0x0003DF60 File Offset: 0x0003C160
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RecordId != 0U)
			{
				num ^= this.RecordId.GetHashCode();
			}
			if (this.stageTertinggi_ != null)
			{
				num ^= this.StageTertinggi.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060015C0 RID: 5568 RVA: 0x0003DFB5 File Offset: 0x0003C1B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060015C1 RID: 5569 RVA: 0x0003DFBD File Offset: 0x0003C1BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060015C2 RID: 5570 RVA: 0x0003DFC8 File Offset: 0x0003C1C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.stageTertinggi_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.StageTertinggi);
			}
			if (this.RecordId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.RecordId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060015C3 RID: 5571 RVA: 0x0003E024 File Offset: 0x0003C224
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RecordId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RecordId);
			}
			if (this.stageTertinggi_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.StageTertinggi);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060015C4 RID: 5572 RVA: 0x0003E07C File Offset: 0x0003C27C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChallengeStoryStatistics other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RecordId != 0U)
			{
				this.RecordId = other.RecordId;
			}
			if (other.stageTertinggi_ != null)
			{
				if (this.stageTertinggi_ == null)
				{
					this.StageTertinggi = new ChallengeStoryStageTertinggi();
				}
				this.StageTertinggi.MergeFrom(other.StageTertinggi);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060015C5 RID: 5573 RVA: 0x0003E0E4 File Offset: 0x0003C2E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060015C6 RID: 5574 RVA: 0x0003E0F0 File Offset: 0x0003C2F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 26U)
				{
					if (num != 40U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.RecordId = input.ReadUInt32();
					}
				}
				else
				{
					if (this.stageTertinggi_ == null)
					{
						this.StageTertinggi = new ChallengeStoryStageTertinggi();
					}
					input.ReadMessage(this.StageTertinggi);
				}
			}
		}

		// Token: 0x040008F4 RID: 2292
		private static readonly MessageParser<ChallengeStoryStatistics> _parser = new MessageParser<ChallengeStoryStatistics>(() => new ChallengeStoryStatistics());

		// Token: 0x040008F5 RID: 2293
		private UnknownFieldSet _unknownFields;

		// Token: 0x040008F6 RID: 2294
		public const int RecordIdFieldNumber = 5;

		// Token: 0x040008F7 RID: 2295
		private uint recordId_;

		// Token: 0x040008F8 RID: 2296
		public const int StageTertinggiFieldNumber = 3;

		// Token: 0x040008F9 RID: 2297
		private ChallengeStoryStageTertinggi stageTertinggi_;
	}
}
